{extend name="../public/header" /}
{block name="body"}
<body>
{include file="../public/top" uname="$roleInfo.uname" lv="$roleInfo.ulv" ls="$roleInfo.uyxb" jp="$roleInfo.uczb" /}
<div class="subject main">
    <div class="layui-row">
        <div class="content">
            <div class="current">
                <span class="position">{$roleInfo.map.mname}</span>
                <span class="state">{if $roleInfo.map.ispvp==0}[安全区]{else/}[PVP]{/if}</span>
                <span class="info ajax-goto" data-url="{:url('home/index')}">返回</span>
            </div>
            <div class="refine">
                <div class="mster">
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header">[Lv:{$info.glv}] {$info.gname}</div>
                            <div class="layui-card-body">
                                <p>{$info.ginfo}</p>
                                <p>Hp：{$info.ghp}-{$info.gmaxhp}</p>
                                <p>攻击：{$info.ggj}</p>
                                <p>防御：{$info.gfy}</p>
                                <p>暴击：{$info.gbj}</p>
                                <p>吸血：{$info.gxx}</p>
                                <p>速度：{$info.gsd}</p>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header">掉落 <span style="color:#999999">(有一定几率)</span></div>
                            <div class="layui-card-body">
                                <p>
                                    {volist name='$info.gzb_list' id='vo' key='k' length='10'}
                                    [Lv:{$vo.lv}]{$vo.name}
                                    {/volist}
                                </p>
                                <p>
                                    {volist name='$info.gyp_list' id='vo' key='k' length='10'}
                                    [Lv:{$vo.lv}]{$vo.name}
                                    {/volist}
                                </p>
                                <p>
                                    {volist name='$info.gdj_list' id='vo' key='k' length='10'}
                                    {$vo.name}
                                    {/volist}
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header">操作</div>
                            <div class="layui-card-body">
                                <a class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs ajax-goto" data-url="{:url('duel/pve')}" data-field="str" data-value="{$str}">战斗</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
{/block}
{block name="script"}
<script>
    layui.use(['jquery', 'form', 'layajax', 'upload', 'flow', 'element'], function () {
        var $ = layui.jquery
            , layajax = layui.layajax
            , upload = layui.upload
            , element = layui.element
            , flow = layui.flow
            , form = layui.form;

        form.render();
    });
</script>
{/block}